import request from '@/utils/request'

// 查询锦囊管理列表
export function listJnRole(query) {
  return request({
    url: '/business/jnrole/list',
    method: 'get',
    params: query
  })
}

export function listJnRoleAll(query) {
  return request({
    url: '/business/jnrole/alllist',
    method: 'get',
    params: query
  })
}


// 查询锦囊管理详细
export function getJnRole(roleId) {
  return request({
    url: '/business/jnrole/' + roleId,
    method: 'get'
  })
}

// 新增锦囊管理
export function addJnRole(data) {
  return request({
    url: '/business/jnrole',
    method: 'post',
    data: data
  })
}

// 修改锦囊管理
export function updateJnRole(data) {
  return request({
    url: '/business/jnrole',
    method: 'put',
    data: data
  })
}

// 删除锦囊管理
export function delJnRole(roleId) {
  return request({
    url: '/business/jnrole/' + roleId,
    method: 'delete'
  })
}
